package com.chen.web;

import com.chen.rabbit.Sender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @decription
 * @atuhor:陈红卫
 * @create : 2017-06-20-11:26
 */
@RestController
public class SenderConsumer {

    @Autowired
    private Sender sender;


    @RequestMapping("/SendMessage")
    public String SendMessage(){
        sender.send();
        return "SendMessage";
    }

}

